package com.dream.inspect.modules.business.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.dream.inspect.modules.business.entity.InstructionsEntity;
import com.dream.inspect.modules.dream.pojo.InstrucationsFormMap;

/**
 * 指令表
 * 
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2018-06-16 17:04:56
 */
public interface InstructionsDao extends BaseMapper<InstructionsEntity> {
	public List<InstrucationsFormMap> findInstructionList(@Param("map")Map<String ,Object> map,Page<InstrucationsFormMap> page);
	public List<InstrucationsFormMap> findList(@Param("map")Map<String ,Object> map,Page<InstrucationsFormMap> page);
	public void insertInstructions(InstrucationsFormMap instrucationsFormMap);
	int selectThisMonthCount(@Param("ew") Wrapper<InstructionsEntity> wrapper);
	int selectMonthCount(Map<String ,String> map);
	
	List<InstructionsEntity> findInstructionsForSearchPage(@Param("ew") Wrapper<InstructionsEntity> wrapper, 
			@Param("currPage") int currPage,
            @Param("pageSize") int pageSize);
	
	int findInstructionsForSearchPageCount(@Param("ew") Wrapper<InstructionsEntity> wrapper);
}
